package com.dream.service;

import com.dream.pojo.Department;

import java.util.List;

public interface DepartmentService {

    /**
     * 查询条数
     * @param deptName
     * @return
     */
    long totalCount(String deptName);

    /**
     * 查询每页的数据
     * @param deptName
     * @param pageIndex
     * @param pageSize
     * @return
     */
    List<Department> list(String deptName,long pageIndex,long pageSize);
    int add(Department department);
    Department findById(String deptId);
    int update(Department department);
    int deleteById(String deptId);

    List<Department> getAllDept();
}
